home *** CD-ROM | disk | FTP | other *** search
Text File | 2011-06-09 | 67.8 KB | 2,758 lines |
- function _DWInit()
- {
- _DW_2A = null;
- _DW_2B = null;
- _DW_2C = null;
- _DW_2D = null;
- _DW_2E = null;
- _DW_2F = 400;
- _DW_30 = new Array();
- _DW_31 = null;
- _DW_32 = null;
- _DW_33 = null;
- _DW_34 = 100;
- _DW_waiting_for_page = 0;
- _DW_bookmarks = new Array();
- _DW_bookmarks.current_bookmark = 0;
- _DW_bookmarks.multiple_bookmarks = 0;
- _DW_bookmarks_cookie = null;
- _DW_35 = null;
- }
- function _DWInitPublication(name, double_click, normal_cursor, busy_cursor, reset, reset_page, reset_chapter, exit_page, exit_chapter, exit_time, drcm, frame_rate, multiple_bookmarks)
- {
- _DWInit();
- _DW_2F = double_click;
- _DW_frame_rate = frame_rate;
- _DW_bookmarks.multiple_bookmarks = multiple_bookmarks;
- _DW_publication = new Object();
- _DW_publication._DW_name = name;
- _DW_publication._DW_1 = 0;
- _DW_publication._DW_2 = 1;
- _DW_publication._DW_code = 0;
- _DW_publication._DW_3 = "Publication";
- _DW_publication._DW_object = new _ILMTreeObject(_DW_publication);
- _DW_publication._DW_normal_cursor = normal_cursor;
- _DW_publication._DW_busy_cursor = busy_cursor;
- _DW_publication._DW_exit_page = exit_page;
- _DW_publication._DW_exit_chapter = exit_chapter;
- _DW_publication._DW_exit_time = exit_time;
- _DW_publication._DW_page_variables = new Object();
- _DW_publication._DW_0 = new Array();
- if(drcm)
- {
- getUrl("FSCommand:showmenu", "false");
- }
- _DWLoadBookmarks();
- }
- function _DWLoadBookmarks()
- {
- _DW_bookmarks_cookie = null;
- getURL("FSCommand:LoadBookmarks","");
- var update = new Object();
- update.Update = _DWLoadBookmarksUpdate;
- _DWAddUpdate(update);
- }
- function _DWLoadBookmarksUpdate()
- {
- if(_DW_bookmarks_cookie == null)
- {
- return undefined;
- }
- Print("cookie loaded=" + _DW_bookmarks_cookie + "\n");
- var bookmarks = new Array();
- var unescaped_pages = unescape(_DW_bookmarks_cookie);
- bookmarks = unescaped_pages.split(",");
- var i = 0;
- while(i < bookmarks.length)
- {
- var bookmark = new Object();
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- bookmark.chapter_code = parseInt(bookmarks[_loc0_]);
- i = (_loc0_ = eval("i")) + 1;
- bookmark.index = parseInt(bookmarks[_loc0_]);
- bookmark.page_name = unescape(bookmarks[i]);
- _root._DW_bookmarks.push(bookmark);
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- _DWRemoveUpdate(this);
- }
- function _DWCheckFlashVersion()
- {
- var player_version = _root.$version;
- var major_version = player_version.charAt(player_version.indexOf(" ") + 1);
- if(major_version >= "5")
- {
- play();
- }
- }
- function _DWInitChapter(code, name, panel, first_index, total_pages)
- {
- var chapter = new Object();
- chapter._DW_name = name;
- chapter._DW_1 = 0;
- chapter._DW_2 = 2;
- chapter._DW_code = code;
- chapter._DW_3 = "Chapter";
- chapter._DW_object = new _ILMTreeObject(chapter);
- chapter._DW_8 = panel;
- chapter._DW_6 = first_index;
- chapter._DW_7 = total_pages;
- _DW_publication._DW_0.push(chapter);
- if(panel == - 2)
- {
- chapter._DW_8 = 0;
- }
- if(_DW_30[chapter._DW_8] == undefined)
- {
- var view = new Object();
- view._DW_8 = chapter._DW_8;
- view._DW_9 = null;
- view._DW_view = panel != - 2 ? this["Panel" + chapter._DW_8] : this;
- view._DW_A = new Array();
- view._DW_B = view._DW_A.push(panel != - 2 ? 1 : 2);
- _DW_30[chapter._DW_8] = view;
- }
- chapter._DW_view = _DW_30[chapter._DW_8];
- }
- function _DWFindChapter(code)
- {
- var chapters = _DW_publication._DW_0;
- var i = 0;
- while(i < chapters.length)
- {
- if(chapters[i]._DW_code == code)
- {
- return chapters[i];
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- function _DWInitPage(page, name, code, chapter_code, page_index, show_for, next_page, next_chapter, right, bottom)
- {
- if(page._name.substring(0,7) == "_DWNull")
- {
- return undefined;
- }
- page._DW_name = name;
- page._DW_1 = 0;
- page._DW_2 = 4;
- page._DW_code = code;
- page._DW_3 = "Page";
- var obj = _DW_publication._DW_page_variables[code];
- if(obj == undefined)
- {
- obj = _DWGetNewScriptObject(page);
- _DW_publication._DW_page_variables[code] = obj;
- }
- page._DW_object = obj;
- page._DW_chapter = _DWFindChapter(chapter_code);
- page._DW_C = page_index;
- page._DW_D = show_for;
- page._DW_E = next_page;
- page._DW_F = next_chapter;
- page._DW_10 = 0;
- page._DW_11 = 0;
- page._DW_12 = right;
- page._DW_13 = bottom;
- page._DW_delay = 0;
- }
- function _DWInitVariables(obj, variables)
- {
- if(obj._DW_3 == undefined)
- {
- return undefined;
- }
- obj._DW_variables = variables;
- _DWResetVariables(obj,false);
- }
- function _DWResetVariables(obj, force)
- {
- var list = obj._DW_object;
- var variables = obj._DW_variables;
- var i = 0;
- while(i < variables.length)
- {
- if(!variables[i + 2] || list[variables[i]] == undefined || force)
- {
- list[variables[i]] = variables[i + 1];
- }
- i = eval("i") + 3;
- }
- _DWUpdateVariableCallbacks(null);
- }
- function _DWStartPage(page)
- {
- if(page._DW_3 == undefined)
- {
- return undefined;
- }
- if(page._DW_delay)
- {
- page._DW_start_delayed = true;
- return undefined;
- }
- _DWSetCursor(null);
- _DW_9 = page;
- page._DW_chapter._DW_view._DW_9 = page;
- _DWTriggerEvents(page,"PreShow");
- var transition = page._DW_show;
- if(transition)
- {
- page._visible = false;
- page._DW_visible = 1;
- _DWSyncTransition(true,page,transition);
- transition._visible = true;
- transition.gotoAndPlay(1);
- }
- else
- {
- _DWShowPageComplete(page);
- }
- }
- function _DWShowPageComplete(page)
- {
- var children = page._DW_0;
- if(children)
- {
- var i = 0;
- while(i < children.length)
- {
- _DWStartObject(children[i]);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- var script_children = page._DW_script_children;
- if(script_children)
- {
- var i = 0;
- while(i < script_children.length)
- {
- script_children[i].StartObject();
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- if(page._DW_D != - 1)
- {
- var goto_action = new Object();
- goto_action.CallAction = _DWActionGotoPage;
- goto_action.chapter = page._DW_F;
- goto_action.page = page._DW_E;
- goto_action.time = getTimer() + page._DW_D;
- _DWAddAction(goto_action);
- }
- _DWTriggerEvents(page,"OnShow");
- _DWInitActions(page);
- }
- function _DWGetVariable(name, obj)
- {
- var page = _DWGetPage(obj);
- var vars = page && page._DW_object;
- if(vars != undefined && vars[name] != undefined)
- {
- return vars[name];
- }
- vars = _DW_publication._DW_object;
- if(vars != undefined && vars[name] != undefined)
- {
- return vars[name];
- }
- return "";
- }
- function _DWSetVariable(name, value, obj)
- {
- var page = _DWGetPage(obj);
- var vars = page && page._DW_object;
- if(vars != undefined && vars[name] != undefined)
- {
- vars[name] = value;
- }
- else
- {
- vars = _DW_publication._DW_object;
- vars[name] = value;
- }
- _DWUpdateVariableCallbacks(name);
- }
- function _DWGetPage(obj)
- {
- while(obj)
- {
- if(obj._DW_3 == "Page")
- {
- return obj;
- }
- obj = obj._parent;
- }
- }
- function _DWUpdateVariableCallbacks(name)
- {
- var pos = _DW_31;
- while(pos)
- {
- var callback = pos;
- pos = pos.callback_next;
- callback.VariableChanged(name,this);
- }
- }
- function _DWTick()
- {
- if(_DW_waiting_for_page == 2)
- {
- return undefined;
- }
- if(_DW_waiting_for_page)
- {
- if(_framesloaded < _DW_waiting_for_page)
- {
- _DWDoUpdate();
- _DWUpdateCursor();
- return undefined;
- }
- this.gotoAndStop(_DW_waiting_for_page);
- _DW_waiting_for_page = 0;
- _DWSetCursor(null);
- }
- _DWDoActions();
- _DWDoUpdate();
- _DWDoActions();
- _DWDoActions();
- if(_DW_drag_object)
- {
- _DWUpdateDrag();
- }
- _DWCheckInputFocus();
- _DWUpdateCursor();
- }
- function _DWMouseMove()
- {
- if(_DW_waiting_for_page)
- {
- return undefined;
- }
- if(_DW_35)
- {
- _DWMouseMoveEvent(_DW_35);
- }
- else
- {
- var i = 0;
- while(i < _DW_30.length)
- {
- _DWMouseMoveEvent(_DW_30[i]._DW_9);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- }
- function _DWMouseMoveEvent(obj)
- {
- if(obj == null)
- {
- return undefined;
- }
- var children = !_DW_35 ? obj._DW_0 : null;
- if(children)
- {
- var i = children.length - 1;
- while(i >= 0)
- {
- var child = children[i];
- if(!(child._DW_visible != 2 || !child._DW_enabled))
- {
- _DWMouseMoveEvent(child);
- var hit = child.hitTest(_root._xmouse,_root._ymouse,child._DW_transparent);
- if(hit != child._DW_hit)
- {
- child._DW_hit = hit;
- if(hit)
- {
- _DWEnter(child);
- }
- else
- {
- _DWLeave(child);
- }
- }
- if(hit && child._DW_26 && child._DW_state == "Down" && !_DW_drag_object)
- {
- if(_DWBeginDrag(child))
- {
- return undefined;
- }
- }
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) - 1;
- _loc0_;
- }
- }
- _DWTriggerEvents(obj,"OnMouseMove");
- }
- function _DWEnter(obj)
- {
- with(obj)
- {
- if(!_DW_enabled)
- {
- return undefined;
- }
- _DWSetAppearance(obj,!(obj._DW_3 == "Button" && obj._DW_button_down) ? 2 : 6);
- _DW_state = "Over";
- _DWTriggerEvents(obj,"OnMouseOver");
- if(obj._DW_over_cursor)
- {
- _DWSetCursor(obj._DW_over_cursor);
- }
- }
- }
- function _DWLeave(obj)
- {
- with(obj)
- {
- if(!_DW_enabled)
- {
- return undefined;
- }
- if(obj._DW_3 == "Button" && obj._DW_button_mode == 0)
- {
- _DWButtonUp(obj);
- }
- _DWSetAppearance(obj,!(obj._DW_3 == "Button" && obj._DW_button_down) ? 1 : 5);
- _DW_state = "Normal";
- _DWTriggerEvents(obj,"OnMouseOut");
- _DW_auto_handle = - 1;
- if(obj._DW_over_cursor || obj._DW_down_cursor)
- {
- _DWSetCursor(null);
- }
- }
- }
- function _DWMouseDown()
- {
- if(_DW_waiting_for_page)
- {
- return undefined;
- }
- if(_DW_35)
- {
- _DWMouseDownEvent(_DW_35);
- }
- else
- {
- var i = 0;
- while(i < _DW_30.length)
- {
- _DWMouseDownEvent(_DW_30[i]._DW_9);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- }
- function _DWMouseDownEvent(obj)
- {
- var children = !_DW_35 ? obj._DW_0 : null;
- var trigger = "OnLeftDown";
- if(Key.isDown(16))
- {
- trigger = eval("trigger") + "S";
- }
- if(Key.isDown(17))
- {
- trigger = eval("trigger") + "C";
- }
- if(Key.isDown(18))
- {
- trigger = eval("trigger") + "A";
- }
- if(children)
- {
- var i = children.length - 1;
- while(i >= 0)
- {
- var child = children[i];
- if(!(child._DW_visible != 2 || !child._DW_enabled || !child.hitTest(_root._xmouse,_root._ymouse,child._DW_transparent)))
- {
- if(!_DWMouseDownEvent(child))
- {
- return false;
- }
- if(child._DW_3 == "Button")
- {
- if(child._DW_button_mode == 0)
- {
- if(!child._DW_button_down)
- {
- _DWButtonDown(child);
- }
- }
- else if(child._DW_button_mode == 1)
- {
- if(child._DW_button_down)
- {
- child._DW_button_pressed = true;
- }
- else
- {
- _DWButtonDown(child);
- }
- }
- else if(!child._DW_button_down)
- {
- var j = children.length - 1;
- while(j >= 0)
- {
- if(j != i)
- {
- var other_child = children[j];
- if(other_child._DW_3 == "Button" && other_child._DW_button_mode == 2 && other_child._DW_button_group == child._DW_button_group)
- {
- _DWButtonUp(other_child);
- }
- }
- var _loc0_ = null;
- j = (_loc0_ = eval("j")) - 1;
- _loc0_;
- }
- _DWButtonDown(child);
- }
- }
- else
- {
- _DWSetAppearance(child,3);
- }
- child._DW_state = "Down";
- if(child._DW_auto_repeat)
- {
- var action = new Object();
- action.CallAction = _DWActionAutoRepeat;
- action.object = child;
- action.time = getTimer() + 400;
- _loc0_ = child._DW_auto_handle = _loc0_ = _loc0_["_DW_auto_handle"] + 1;
- action.handle = _loc0_;
- action.trigger = trigger;
- _DWAddAction(action);
- }
- if(!child._DW_pass_clicks)
- {
- return false;
- }
- }
- i = (_loc0_ = eval("i")) - 1;
- _loc0_;
- }
- }
- _DWTriggerEvents(obj,trigger);
- if(obj._DW_down_cursor)
- {
- _DWSetCursor(obj._DW_down_cursor);
- }
- return true;
- }
- function _DWMouseUp()
- {
- if(_DW_waiting_for_page)
- {
- return undefined;
- }
- if(_DW_drag_object)
- {
- _DWEndDrag();
- }
- var double_click;
- if(_DW_2E && getTimer() - _DW_2E < _DW_2F)
- {
- double_click = true;
- _DW_2E = null;
- }
- else
- {
- double_click = false;
- _DW_2E = getTimer();
- }
- if(_DW_35)
- {
- _DWMouseUpEvent(_DW_35);
- }
- else
- {
- var i = 0;
- while(i < _DW_30.length)
- {
- _DWMouseUpEvent(_DW_30[i]._DW_9,double_click);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- }
- function _DWMouseUpEvent(obj, double_click)
- {
- var children = !_DW_35 ? obj._DW_0 : null;
- if(children)
- {
- var i = children.length - 1;
- while(i >= 0)
- {
- var child = children[i];
- if(!(child._DW_visible != 2 || !child._DW_enabled || !child.hitTest(_root._xmouse,_root._ymouse,child._DW_transparent)))
- {
- if(!_DWMouseUpEvent(child,double_click))
- {
- return false;
- }
- if(child._DW_state == "Down")
- {
- if(child._DW_3 == "Button")
- {
- if(child._DW_button_mode == 0)
- {
- _DWButtonUp(child);
- }
- else if(child._DW_button_mode == 1)
- {
- if(child._DW_button_pressed)
- {
- _DWButtonUp(child);
- }
- }
- }
- else
- {
- _DWSetAppearance(child,2);
- }
- child._DW_state = "Over";
- child._DW_auto_handle = - 1;
- if(!child._DW_pass_clicks)
- {
- return false;
- }
- }
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) - 1;
- _loc0_;
- }
- }
- if(obj._DW_3 != "Page" && obj._DW_state != "Down")
- {
- return true;
- }
- var trigger = !double_click ? "OnLeftClick" : "OnLeftDouble";
- if(Key.isDown(16))
- {
- trigger = eval("trigger") + "S";
- }
- if(Key.isDown(17))
- {
- trigger = eval("trigger") + "C";
- }
- if(Key.isDown(18))
- {
- trigger = eval("trigger") + "A";
- }
- _DWTriggerEvents(obj,trigger);
- if(obj._DW_down_cursor)
- {
- _DWSetCursor(obj._DW_over_cursor);
- }
- return true;
- }
- function _DWKeyDown()
- {
- if(_DW_waiting_for_page)
- {
- return undefined;
- }
- if(_DW_32 == null)
- {
- var i = 0;
- while(i < _DW_30.length)
- {
- _DWKeyDownEvent(_DW_30[i]._DW_9);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- else
- {
- _DWInputKey(false);
- }
- }
- function _DWKeyUp()
- {
- if(_DW_waiting_for_page)
- {
- return undefined;
- }
- if(_DW_32 != null)
- {
- _DWInputKey(true);
- }
- }
- function _DWInputKey(up)
- {
- var keys = [8,9,13,20,33,34,35,36,37,38,39,40,45,46];
- var is_key = false;
- var i = 0;
- while(i < keys.length)
- {
- if(Key.getCode() == keys[i])
- {
- is_key = true;
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- if(is_key == up)
- {
- var obj = eval(_DW_32);
- _DWKeyDownEvent(obj);
- }
- }
- function _DWKeyDownEvent(obj)
- {
- var children = obj._DW_0;
- if(children)
- {
- var i = children.length - 1;
- while(i >= 0)
- {
- var child = children[i];
- if(!(child._DW_visible != 2 || !child._DW_enabled))
- {
- _DWKeyDownEvent(child);
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) - 1;
- _loc0_;
- }
- }
- var trigger = "Key" + new Number(Key.getCode()).toString(16);
- if(Key.isDown(16))
- {
- trigger = eval("trigger") + "S";
- }
- if(Key.isDown(17))
- {
- trigger = eval("trigger") + "C";
- }
- _DWTriggerEvents(obj,trigger);
- return true;
- }
- function _DWButtonDown(button)
- {
- if(!button._DW_button_down)
- {
- _DWOffsetChildren(button,button._DW_button_offset);
- }
- button._DW_button_down = true;
- button._DW_button_pressed = false;
- _DWSetAppearance(button,button._DW_state != "Normal" ? 6 : 5);
- _DWUpdateButtonVar(button);
- }
- function _DWButtonUp(button)
- {
- if(button._DW_button_down)
- {
- _DWOffsetChildren(button,- button._DW_button_offset);
- }
- button._DW_button_down = false;
- button._DW_button_pressed = false;
- _DWSetAppearance(button,button._DW_state != "Normal" ? 2 : 1);
- _DWUpdateButtonVar(button);
- }
- function _DWUpdateButtonVar(button)
- {
- if(button._DW_button_var.length)
- {
- _DWSetVariable(button._DW_button_var,button._DW_button_down,button);
- }
- if(button._DW_button_mode == 2 && button._DW_button_down)
- {
- var g = button._DW_button_group;
- button._DW_group_index = 0;
- _DWGetRadioIndex(_DWGetPage(button),button);
- _DWSetVariable("RADIO_GROUP_" + g + "_ID",button._DW_group_index,button);
- _DWSetVariable("RADIO_GROUP_" + g + "_NAME",button._DW_name,button);
- }
- }
- function _DWGetRadioIndex(obj, button)
- {
- var children = obj._DW_0;
- var i = 0;
- while(i < children.length)
- {
- var child = children[i];
- if(child == button)
- {
- return true;
- }
- if(child._DW_button_mode == 2 && child._DW_button_group == button._DW_button_group)
- {
- var _loc0_ = null;
- _loc0_ = button._DW_group_index = (_loc0_ = _loc0_["_DW_group_index"]) + 1;
- _loc0_;
- }
- if(_DWGetRadioIndex(child,button))
- {
- return true;
- }
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- function _DWOffsetChildren(obj, offset)
- {
- var children = obj._DW_0;
- if(children)
- {
- var i = children.length - 1;
- while(i >= 0)
- {
- var child = children[i];
- var _loc0_ = null;
- _loc0_ = child._x = _loc0_["_x"] + offset;
- _loc0_ = child._y = _loc0_["_y"] + offset;
- i = (_loc0_ = eval("i")) - 1;
- _loc0_;
- }
- }
- if(obj._DWIMAGE)
- {
- _loc0_ = obj._DWIMAGE._x = _loc0_["_x"] + offset;
- _loc0_ = obj._DWIMAGE._y = _loc0_["_y"] + offset;
- }
- }
- function _DWAddUpdate(update)
- {
- var pos = _DW_2B;
- while(pos)
- {
- if(pos == update)
- {
- return undefined;
- }
- pos = pos.update_next;
- }
- update.update_next = _DW_2B;
- _DW_2B = update;
- }
- function _DWRemoveUpdate(update)
- {
- if(_DW_2B == update)
- {
- _DW_2B = _DW_2B.update_next;
- return undefined;
- }
- var pos = _DW_2B;
- while(pos.update_next)
- {
- if(pos.update_next == update)
- {
- pos.update_next = pos.update_next.update_next;
- return undefined;
- }
- pos = pos.update_next;
- }
- }
- function _DWDoUpdate()
- {
- var pos = _DW_2B;
- while(pos)
- {
- var update = pos;
- pos = pos.update_next;
- update.Update(this);
- }
- }
- function _DWAddAction(action)
- {
- if(!_DW_2A || action.time < _DW_2A.time)
- {
- action.next = _DW_2A;
- _DW_2A = action;
- }
- else
- {
- var pos = _DW_2A;
- while(pos.next && pos.next.time < action.time)
- {
- pos = pos.next;
- }
- action.next = pos.next;
- pos.next = action;
- }
- }
- function _DWDoActions()
- {
- var time = getTimer();
- while(_DW_2A && time >= _DW_2A.time)
- {
- var action = _DW_2A;
- _DW_2A = _DW_2A.next;
- action.CallAction(action);
- }
- }
- function _DWActionShow(action)
- {
- _DWShowObject(action.object);
- }
- function _DWActionHide(action)
- {
- _DWHideObject(action.object);
- }
- function _DWActionGotoPage(action)
- {
- _DWGotoPage(action.page,action.chapter);
- }
- function _DWActionAutoRepeat(action)
- {
- var obj = action.object;
- if(action.handle == obj._DW_auto_handle && obj._DW_state == "Down" && !_DW_drag_object)
- {
- _DWTriggerEvents(obj,action.trigger);
- action.time = getTimer() + 100;
- _DWAddAction(action);
- }
- }
- function _DWSetCursor(cursor)
- {
- if(!cursor)
- {
- cursor = _DW_publication._DW_normal_cursor;
- }
- if(_DW_33 != cursor)
- {
- if(_DW_33)
- {
- _DW_33._visible = false;
- }
- else
- {
- Mouse.hide();
- }
- _DW_33 = cursor;
- if(_DW_33)
- {
- _DW_33._visible = true;
- }
- else
- {
- Mouse.show();
- }
- }
- }
- function _DWUpdateCursor()
- {
- if(_DW_33)
- {
- _DW_33.x = _root._xmouse;
- _DW_33.y = _root._ymouse;
- this.globalToLocal(_DW_33);
- _DW_33._x = _DW_33.x;
- _DW_33._y = _DW_33.y;
- }
- }
- function Print(text)
- {
- var obj = this;
- while(obj && !obj._DWInitPublication)
- {
- obj = obj._parent;
- }
- var _loc0_ = null;
- _loc0_ = obj._DWPRINTTEXT = _loc0_["_DWPRINTTEXT"] + text;
- }
- function _DWTriggerEvents(obj, trigger)
- {
- var actions = obj._DWActions;
- if(actions == undefined)
- {
- return undefined;
- }
- var i = 0;
- while(i < actions.length)
- {
- actions[i].Trigger(trigger);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- function _DWInitActions(obj)
- {
- _DWInitCloseActions(obj,false,obj);
- }
- function _DWCloseActions(obj)
- {
- _DWInitCloseActions(obj,true,obj);
- }
- function _DWInitCloseActions(obj, close, host)
- {
- var actions = obj._DWActions;
- var i = 0;
- while(i < actions.length)
- {
- actions[i].InitClose(close,host);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- var text = obj._DW_text;
- if(!text)
- {
- return undefined;
- }
- var line_index = 0;
- while(line_index < text.length)
- {
- var line = text[line_index];
- var item_index = 0;
- while(item_index < line.length)
- {
- if(line[item_index + 2] & 268435456)
- {
- var tag_number = line[item_index + 3][1];
- var actions = obj["_DWLink" + tag_number + "_DWActions"];
- var i = 0;
- while(i < actions.length)
- {
- actions[i].InitClose(close,host);
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- item_index = eval("item_index") + 4;
- }
- line_index = (_loc0_ = eval("line_index")) + 1;
- _loc0_;
- }
- }
- function _DWGotoPage(index, chapter_code)
- {
- var view = _DWFindChapter(chapter_code)._DW_view;
- if(view._DW_B + 1 < view._DW_A.length)
- {
- view._DW_A.splice(view._DW_B + 1);
- }
- view._DW_B = view._DW_A.push(index) - 1;
- return _DWDoGotoPage(view,index,chapter_code);
- }
- function _DWShowPage(index, chapter_code)
- {
- var view = _DWFindChapter(chapter_code)._DW_view;
- if(_framesloaded >= index + 1 || _framesloaded == _totalframes)
- {
- if(view._DW_view._currentframe == index + 1)
- {
- view._DW_view.gotoAndStop(index + 2);
- }
- view._DW_view.gotoAndStop(index + 1);
- }
- else
- {
- _DW_waiting_for_page = index + 1;
- _DWSetCursor(_DW_publication._DW_busy_cursor);
- }
- }
- function _DWDoGotoPage(view, index, chapter_code)
- {
- var current_page = view._DW_9;
- _DWStopObject(current_page);
- _DW_2A = null;
- _DWStopAllSounds(true,0);
- if(current_page._DW_hide)
- {
- with(current_page)
- {
- _visible = false;
- _DW_visible = 3;
- view._DW_2D = index + 1;
- _DWSyncTransition(false,current_page,_DW_hide);
- _DW_hide._visible = true;
- _DW_hide.gotoAndPlay(1);
- }
- }
- else
- {
- _DWShowPage(index,chapter_code);
- }
- return 0;
- }
- function _DWStopSound(snd, fade_out_frame, synch_end)
- {
- var current_frame = snd._currentframe - snd._DW_sound_start_frame;
- var end_frame = current_frame + fade_out_frame;
- if(fade_out_frame && end_frame - fade_out_frame < snd._DW_sound_end_frame)
- {
- snd._DW_sound_fade_in_frame = 0;
- snd._DW_sound_fade_out_frame = current_frame;
- snd._DW_sound_end_frame = end_frame;
- snd._DW_sound_repeat_index = 0;
- snd._DW_sound_repeat = 0;
- }
- else
- {
- snd.stop();
- _DWRemoveUpdate(snd._DW_sound_updater);
- if(synch_end)
- {
- _DWSynchEndSound(snd);
- }
- if(snd._DW_sound_callback)
- {
- var callback = snd._DW_sound_callback;
- snd._DW_sound_callback = null;
- callback.Notify(0);
- }
- }
- return 0;
- }
- function _DWStopAllSounds(page_exit, fade_out_frame)
- {
- var obj = _DW_2B;
- while(obj)
- {
- var sound = obj;
- obj = obj.update_next;
- if(sound.snd)
- {
- if(!page_exit || sound.snd._DW_sound_stop_page_exit)
- {
- _DWStopSound(sound.snd,fade_out_frame,false);
- }
- }
- }
- return 0;
- }
- function _DWSynchEndSound(snd)
- {
- var trigger = "SynchEnd" + _DWFormatHex(2,2) + _DWFormatHex(0,2) + _DWFormatHex(snd._DW_code,8);
- var page = _DWGetPage(snd._DW_sound_host);
- _DWSendTrigger(page,trigger);
- }
- function _DWLaunchURL(host, url, target)
- {
- if(url.charAt(0) == "<")
- {
- url = _DWGetVariable(url.substr(1,url.length - 2),host) + "";
- }
- getURL(url,target);
- return 0;
- }
- function _DWEvent(triggers, actions)
- {
- this.triggers = triggers;
- this.actions = actions;
- }
- function _DW_39(trigger)
- {
- var i = 0;
- while(i < this.triggers.length)
- {
- if(this.triggers[i] == trigger || typeof trigger == "object" && trigger.Match(this.triggers[i]))
- {
- this.actions.Go(null);
- return undefined;
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- function _DW_3A(close, host)
- {
- var i = 0;
- while(i < this.triggers.length)
- {
- if(this.triggers[i].InitClose)
- {
- this.triggers[i].InitClose(close,host);
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- this.actions.InitClose(close,host);
- }
- function _DWActionList()
- {
- this.length = arguments.length;
- var i = 0;
- while(i < this.length)
- {
- this[i] = arguments[i];
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- this.state = 0;
- }
- function _DW_3B(callback)
- {
- if(this.state != 0)
- {
- return 0;
- }
- this.pos = 0;
- this.callback = callback;
- return this.Run();
- }
- function _DW_3C()
- {
- while(this.pos < this.length)
- {
- this.state = this[this.pos].Go(this);
- var _loc0_ = null;
- _loc0_ = this.pos = (_loc0_ = _loc0_["pos"]) + 1;
- _loc0_;
- if(this.state == 1)
- {
- return 1;
- }
- }
- this.state = 0;
- return 0;
- }
- function _DW_3D(status)
- {
- if(status == 0)
- {
- if(this.Run() == 1)
- {
- return undefined;
- }
- if(this.callback)
- {
- var callback = this.callback;
- this.callback = null;
- callback.Notify(0);
- }
- }
- }
- function _DW_3E(close, host)
- {
- var i = 0;
- while(i < this.length)
- {
- this[i].InitClose(close,host);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- function _DWMultiAction(func)
- {
- this.Construct(arguments,0);
- }
- function _DW_3F(args, num)
- {
- this.func = args[0];
- var i = 1;
- while(num >= i)
- {
- this["arg" + i] = args[i];
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- this.targets = new Array();
- var i = num + 1;
- while(i < args.length)
- {
- this.targets[i - num - 1] = args[i];
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- function _DW_40(callback)
- {
- this.time = getTimer();
- _DWAddAction(this);
- this.callback = callback;
- return 1;
- }
- function _DW_41(target)
- {
- return this.func(target,this);
- }
- function _DW_42()
- {
- this.running = this.targets.length;
- var i = 0;
- while(i < this.targets.length)
- {
- var result = this.Call(this.targets[i]);
- if(result == 0)
- {
- this.Notify(0);
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- function _DW_43(status)
- {
- if(status == 0)
- {
- var _loc0_ = null;
- _loc0_ = this.running = _loc0_ = _loc0_["running"] - 1;
- if(_loc0_ == 0 && this.callback)
- {
- var callback = this.callback;
- this.callback = null;
- callback.Notify(0);
- }
- }
- }
- function _DW_44(close, host)
- {
- this.host = !close ? host : null;
- if(this.targets[0] == null)
- {
- this.targets[0] = host;
- }
- }
- function _DWMultiAction1()
- {
- this.Construct(arguments,1);
- }
- function _DW_45(target)
- {
- return this.func(target,this.arg1,this);
- }
- function _DWMultiAction2()
- {
- this.Construct(arguments,2);
- }
- function _DWMultiAction_Call2(target)
- {
- return this.func(target,this.arg1,this.arg2,this);
- }
- function _DWDropTrigger(code, objects)
- {
- this._DW_drop_code = code;
- this._DW_29 = objects;
- }
- function _DW_55(other)
- {
- if(other._DW_drop_code != this._DW_drop_code)
- {
- return false;
- }
- var objects = other._DW_29;
- if(!objects)
- {
- return true;
- }
- var i = 0;
- while(i < objects.length)
- {
- if(objects[i] == this._DW_29[0])
- {
- return true;
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- return false;
- }
- function _DWAnimateReset(obj, time, speed_type, flags, callback)
- {
- var reset = new _DWAnimation(flags,time,1,0,false,speed_type,callback);
- reset.Update = _DWAnimation_ResetUpdate;
- _DW_36(obj).Add(reset);
- return 1;
- }
- function _DWAnimateStop(obj, flags, callback)
- {
- var controller = obj._DW_4;
- if(controller)
- {
- controller.Remove(flags);
- }
- return 0;
- }
- function _DWAnimation(id, time, repeat, at_end, relative, speed_function, callback)
- {
- this.id = id;
- if(0 >= time)
- {
- time = 10;
- }
- this.time = time;
- this.repeat = repeat;
- this.at_end = at_end;
- this.relative = relative;
- this.speed_function = speed_function;
- this.callback = callback;
- }
- function _DW_63(obj)
- {
- this.init_x = obj._x;
- this.init_y = obj._y;
- this.init_xscale = obj._xscale;
- this.init_yscale = obj._yscale;
- this.init_rotation = obj._rotation;
- this.init_alpha = obj._alpha;
- this.start = getTimer();
- this.pause_time = false;
- this.done = false;
- }
- function _DW_64(obj)
- {
- if(this.callback)
- {
- this.callback.Notify(0);
- }
- }
- function _DW_65(obj)
- {
- this.pause_time = getTimer();
- }
- function _DW_66(obj)
- {
- if(this.pause_time)
- {
- var _loc0_ = null;
- _loc0_ = this.start = _loc0_["start"] + (getTimer() - this.pause_time);
- this.pause_time = 0;
- }
- }
- function _DW_68(obj)
- {
- obj._DW_4.Remove(this.id);
- }
- function _DW_67()
- {
- var time = (!this.pause_time ? getTimer() : this.pause_time) - this.start;
- var trip = Math.floor(time / this.time);
- var delta = time % this.time / this.time;
- var pos = this.speed_function(delta,this.speed_type);
- if(this.at_end == 1)
- {
- if(trip >= this.repeat * 2 && this.repeat != - 1)
- {
- pos = 0;
- this.done = true;
- }
- else if(trip % 2)
- {
- pos = 1 - pos;
- }
- }
- else if(trip >= this.repeat && this.repeat != - 1)
- {
- pos = this.at_end != 0 ? 0 : (!this.relative ? 1 : this.repeat);
- this.done = true;
- }
- else if(this.at_end == 0)
- {
- if(this.relative)
- {
- pos = eval("pos") + trip;
- }
- else if(0 < trip)
- {
- pos = 1;
- }
- }
- return pos;
- }
- function _DWAnimation_ResetUpdate(obj)
- {
- var pos = this.GetPos();
- if(this.id & 1)
- {
- obj._x = this.init_x * (1 - pos) + obj._DW_x * pos;
- }
- if(this.id & 2)
- {
- obj._y = this.init_y * (1 - pos) + obj._DW_y * pos;
- }
- if(this.id & 32)
- {
- obj._xscale = this.init_xscale * (1 - pos) + obj._DW_xscale * pos;
- }
- if(this.id & 64)
- {
- obj._yscale = this.init_yscale * (1 - pos) + obj._DW_yscale * pos;
- }
- if(this.id & 16)
- {
- obj._rotation = this.init_rotation * (1 - pos) + obj._DW_rotation * pos;
- }
- if(this.id & 2048)
- {
- obj._alpha = this.init_alpha * (1 - pos) + obj._DW_alpha * pos;
- }
- _DW_37(obj);
- if(this.done)
- {
- this.Finished(obj);
- }
- }
- function _DW_37(obj)
- {
- var children = obj._DW_0;
- if(!children)
- {
- return undefined;
- }
- var i = 0;
- while(i < children.length)
- {
- var child = children[i];
- if(child._DW_fix_page)
- {
- child._x = child._DW_x - (obj._x - obj._DW_x);
- child._y = child._DW_y - (obj._y - obj._DW_y);
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- function _DWConstantSpeed(pos)
- {
- return pos;
- }
- function _DWAnimationController(obj)
- {
- this.list = null;
- this.object = obj;
- obj._DW_4 = this;
- _DWAddUpdate(this);
- }
- function _DW_69(animation)
- {
- this.Remove(animation.id);
- animation.next = this.list;
- this.list = animation;
- animation.Play(this.object);
- }
- function _DW_6A(id)
- {
- var remove_list = null;
- while(this.list && this.list.id & id)
- {
- this.list.remove_next = remove_list;
- remove_list = this.list;
- this.list = this.list.next;
- }
- var pos = this.list;
- while(pos.next)
- {
- if(pos.next.id & id)
- {
- pos.next.remove_next = remove_list;
- remove_list = pos.next;
- pos.next = pos.next.next;
- }
- else
- {
- pos = pos.next;
- }
- }
- while(remove_list)
- {
- remove_list.Stop(this.object);
- remove_list = remove_list.remove_next;
- }
- }
- function _DW_6B()
- {
- var pos = this.list;
- while(pos)
- {
- pos.Update(this.object);
- pos = pos.next;
- }
- }
- function _DW_36(obj)
- {
- if(obj._DW_4)
- {
- return obj._DW_4;
- }
- var controller = new _DWAnimationController(obj);
- return controller;
- }
- function _DW_38(parent, obj)
- {
- var child_array = new Array();
- var children = parent._DW_0;
- var total = children.length;
- var i = 0;
- while(i < total)
- {
- child_array[i] = children[i];
- if(child_array[i]._DW_layer == undefined)
- {
- child_array[i]._DW_layer = 0;
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- var changed = true;
- child_array.obj_index = - 1;
- while(changed)
- {
- changed = false;
- child_array.obj_index = total - 1;
- var i = 1;
- while(i < total)
- {
- if(child_array[i]._DW_depth < child_array[i - 1]._DW_depth)
- {
- var temp = child_array[i - 1];
- child_array[i - 1] = child_array[i];
- child_array[i] = temp;
- changed = true;
- }
- if(child_array[i - 1] == obj)
- {
- child_array.obj_index = i - 1;
- }
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- if(child_array[child_array.obj_index] != obj)
- {
- Print("BIG STUFF UP!\n");
- }
- return child_array;
- }
- function _DWInitObject(obj, name, subclass, code, show_after, show_for, transparent, pass_clicks, auto_repeat, fix_page, left, top, right, bottom, depth)
- {
- obj._DW_name = name;
- obj._DW_1 = 1;
- obj._DW_2 = subclass;
- obj._DW_code = code;
- obj._DW_3 = _DWGetGraphicalObjectType(subclass);
- obj._DW_object = _DWGetNewScriptObject(obj);
- obj._DW_show_after = show_after;
- obj._DW_D = show_for;
- obj._DW_transparent = transparent;
- obj._DW_pass_clicks = pass_clicks;
- obj._DW_auto_repeat = auto_repeat;
- obj._DW_fix_page = fix_page;
- obj._DW_10 = left;
- obj._DW_11 = top;
- obj._DW_12 = right;
- obj._DW_13 = bottom;
- obj._DW_depth = depth;
- obj._DW_state = "Normal";
- obj._DW_appearances = new Object();
- obj._DW_appearances[1] = 2;
- obj._DW_appearance_frame = 0;
- obj._DW_enabled = true;
- obj._DW_hit = false;
- obj._DW_auto_handle = - 1;
- obj._DW_x = obj._x;
- obj._DW_y = obj._y;
- obj._DW_xscale = obj._xscale;
- obj._DW_yscale = obj._yscale;
- obj._DW_rotation = obj._rotation;
- obj._DW_alpha = obj._alpha;
- if(obj._parent._DW_0 == undefined)
- {
- obj._parent._DW_0 = new Array();
- }
- obj._parent._DW_0.push(obj);
- }
- function _DWGetGraphicalObjectType(subclass)
- {
- if(subclass == 1)
- {
- return "Frame";
- }
- if(subclass == 2)
- {
- return "Button";
- }
- if(subclass == 3)
- {
- return "Image";
- }
- if(subclass == 4)
- {
- return "Text";
- }
- if(subclass == 5)
- {
- return "Video";
- }
- if(subclass == 8)
- {
- return "Slideshow";
- }
- if(subclass == 10)
- {
- return "Vector";
- }
- if(subclass == 11)
- {
- return "Path";
- }
- if(subclass == 16)
- {
- return "Scrollbar";
- }
- if(subclass == 17)
- {
- return "Browser";
- }
- if(subclass == 18)
- {
- return "Frameset";
- }
- if(subclass == 30)
- {
- return "Frameset";
- }
- return "Unknown";
- }
- function _DWInitAppearances(obj)
- {
- var apps = obj._DW_appearances;
- var i = 1;
- while(i < arguments.length)
- {
- apps[arguments[i]] = arguments[i + 1];
- i = eval("i") + 2;
- }
- }
- function _DWStartObject(obj)
- {
- if(obj._DW_visible == undefined)
- {
- _DWInitActions(obj);
- }
- obj._DW_visible = 0;
- if(obj._parent._DW_3 == "Frameset")
- {
- obj._visible = false;
- }
- else if(obj._DW_show_after)
- {
- obj._visible = false;
- if(obj._DW_show_after != - 1)
- {
- var show_action = new Object();
- show_action.CallAction = _DWActionShow;
- show_action.object = obj;
- show_action.time = getTimer() + obj._DW_show_after;
- _DWAddAction(show_action);
- }
- }
- else
- {
- _DWShowObject(obj);
- }
- }
- function _DWSetAppearance(obj, appearance)
- {
- var index = obj._DW_appearances[appearance];
- if(index == undefined)
- {
- index = 1;
- }
- if(obj._DW_appearance_frame != index)
- {
- obj.gotoAndStop(obj._DW_appearance_frame + 1);
- obj.gotoAndStop(index);
- obj._DW_appearance_frame = index;
- }
- if(obj._DW_transparency)
- {
- var transparency = obj._DW_transparency[appearance];
- if(transparency != undefined)
- {
- obj._alpha = transparency;
- }
- }
- if(obj._DW_stretch)
- {
- var stretch_x = obj._DW_stretch[2 * appearance];
- var stretch_y = obj._DW_stretch[2 * appearance + 1];
- if(stretch_x != undefined && stretch_y != undefined)
- {
- obj._xscale = stretch_x;
- obj._yscale = stretch_y;
- }
- }
- if(obj._DW_sub_objects)
- {
- var hide_unknown = obj._DW_sub_objects[2 * appearance];
- var objects = obj._DW_sub_objects[2 * appearance + 1];
- var children = obj._DW_0;
- if(children)
- {
- var i = 0;
- while(i < children.length)
- {
- var child = children[i];
- var hide = hide_unknown;
- var j = 0;
- while(j < objects.length)
- {
- if(objects[j] == child)
- {
- hide = !objects[j + 1];
- break;
- }
- j = eval("j") + 2;
- }
- if(hide)
- {
- _DWHideObject(child);
- }
- else
- {
- _DWShowObject(child);
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- }
- }
- function _DWShowObject(obj, transition, callback, bodge)
- {
- if(obj._parent._DW_3 == "Frameset" && callback && !bodge)
- {
- return _DWFrameSetShowFrame(obj,transition,callback);
- }
- if(typeof transition == "string")
- {
- transition = obj._parent[obj._name + transition];
- }
- else if(typeof transition != "object")
- {
- transition = obj._DW_show;
- if(!transition)
- {
- transition = obj._DW_textshow;
- }
- }
- if(obj._DW_visible == 2 || obj._DW_visible == 1)
- {
- return 0;
- }
- if(obj._DW_visible == 3)
- {
- var transition = obj._DW_transition;
- transition.stop();
- transition._visible = false;
- if(transition._DW_transition_callback)
- {
- transition._DW_transition_callback.Notify(0);
- }
- obj._visible = true;
- obj._DW_visible = 2;
- return 0;
- }
- _DWTriggerEvents(obj,"PreShow");
- obj._x = obj._DW_x;
- obj._y = obj._DW_y;
- obj._xscale = obj._DW_xscale;
- obj._yscale = obj._DW_yscale;
- obj._rotation = obj._DW_rotation;
- obj._alpha = obj._DW_alpha;
- if(obj._DW_fix_page)
- {
- obj._x = obj._DW_x - (obj._parent._x - obj._parent._DW_x);
- obj._y = obj._DW_y - (obj._parent._y - obj._parent._DW_y);
- }
- _DWSetAppearance(obj,!(obj._DW_3 == "Button" && obj._DW_button_down) ? 1 : 5);
- if(transition)
- {
- obj._DW_transition = transition;
- obj._visible = false;
- obj._DW_visible = 1;
- _DWSyncTransition(true,obj,transition);
- transition._visible = true;
- transition.gotoAndPlay(1);
- transition._DW_transition_callback = callback;
- return 1;
- }
- obj._visible = true;
- obj._DW_visible = 2;
- _DWShowObjectComplete(obj);
- return 0;
- }
- function _DWShowObjectComplete(obj)
- {
- Print("_DWShowObjectComplete \n");
- var children = obj._DW_0;
- if(children)
- {
- var i = 0;
- while(i < children.length)
- {
- _DWStartObject(children[i]);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- var script_children = obj._DW_script_children;
- if(script_children)
- {
- var i = 0;
- while(i < script_children.length)
- {
- script_children[i].StartObject();
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- if(obj._DW_D != - 1)
- {
- var hide_action = new Object();
- hide_action.CallAction = _DWActionHide;
- hide_action.object = obj;
- hide_action.time = getTimer() + obj._DW_D;
- _DWAddAction(hide_action);
- }
- if(obj._DW_3 == "Text")
- {
- if(obj._DW_set_focus)
- {
- Selection.setFocus(obj + "._DWTEXT");
- }
- }
- _DWTriggerEvents(obj,"OnShow");
- if(i)
- {
- _DWUpdateVariableCallbacks();
- }
- }
- function _DWHideObject(obj, transition, callback, bodge)
- {
- if(obj._parent._DW_3 == "Frameset" && callback && !bodge)
- {
- return 0;
- }
- if(transition != undefined)
- {
- if(obj._DW_texthide)
- {
- var transition_in = transition;
- transition = obj._DW_texthide;
- transition._DW_ObjectHideTransition = obj._parent[obj._name + transition_in];
- }
- else
- {
- transition = obj._parent[obj._name + transition];
- }
- }
- else
- {
- transition = obj._DW_texthide;
- if(!transition)
- {
- transition = obj._DW_hide;
- }
- else
- {
- transition._DW_ObjectHideTransition = null;
- }
- }
- if(obj._DW_27)
- {
- _DWUndropObject(obj);
- }
- if(obj._DW_visible == 0 || obj._DW_visible == 3)
- {
- return 0;
- }
- if(obj._DW_visible == 1)
- {
- var transition = obj._DW_transition;
- transition.stop();
- transition._visible = false;
- if(transition._DW_transition_callback)
- {
- transition._DW_transition_callback.Notify(0);
- }
- obj._visible = false;
- obj._DW_visible = 0;
- return 0;
- }
- _DWTriggerEvents(obj,"PreHide");
- _DWAnimateStop(obj,4294967295);
- if(transition)
- {
- obj._DW_transition = transition;
- transition._x = obj._x;
- transition._y = obj._y;
- transition._xscale = obj._xscale;
- transition._yscale = obj._yscale;
- transition._rotation = obj._rotation;
- transition._alpha = obj._alpha;
- obj._visible = false;
- obj._DW_visible = 3;
- _DWSyncTransition(false,obj,transition);
- transition._visible = true;
- transition.gotoAndPlay(1);
- transition._DW_transition_callback = callback;
- return 1;
- }
- obj._visible = false;
- obj._DW_visible = 0;
- _DWHideObjectComplete(obj);
- return 0;
- }
- function _DWHideObjectComplete(obj)
- {
- _DWTriggerEvents(obj,"OnHide");
- }
- function _DWStopObject(obj)
- {
- var controller = obj._DW_4;
- if(controller)
- {
- _DWRemoveUpdate(controller);
- obj._DW_4 = null;
- }
- _DWCloseActions(obj);
- var children = obj._DW_0;
- if(children)
- {
- var i = 0;
- while(i < children.length)
- {
- _DWStopObject(children[i]);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- var script_children = obj._DW_script_children;
- if(script_children)
- {
- var i = 0;
- while(i < script_children.length)
- {
- script_children[i].StopObject();
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- }
- function _DWSyncTransition(show, obj, transition)
- {
- if(typeof transition == "object")
- {
- var children = obj._DW_0;
- if(children && show)
- {
- var i = 0;
- while(i < children.length)
- {
- var child = children[i];
- child._visible = !(child._DW_show || child._DW_show_after);
- _DWSyncTransition(show,child,transition);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- return undefined;
- }
- var j = 0;
- var trans_obj;
- while(true)
- {
- j = (_loc0_ = eval("j")) + 1;
- var trans_obj = transition["_DWNull" + _loc0_];
- if(!trans_obj)
- {
- break;
- }
- _DWSyncTransitionChildren(show,obj,trans_obj);
- }
- }
- function _DWSyncTransitionChildren(show, obj, transition)
- {
- var children = obj._DW_0;
- if(children)
- {
- var i = 0;
- while(i < children.length)
- {
- var child = children[i];
- var trans_child = transition[child._name];
- if(child._DW_show)
- {
- transition[child._DW_show._name]._visible = false;
- }
- if(child._DW_hide)
- {
- transition[child._DW_hide._name]._visible = false;
- }
- if(show)
- {
- trans_child._visible = !(child._DW_show || child._DW_show_after);
- }
- else
- {
- trans_child._visible = child._visible;
- trans_child._x = child._x;
- trans_child._y = child._y;
- trans_child._xscale = child._xscale;
- trans_child._yscale = child._yscale;
- trans_child._rotation = child._rotation;
- trans_child._alpha = child._alpha;
- }
- _DWSyncTransitionChildren(show,child,trans_child);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- }
- function _DWInitDrag(obj, return_time)
- {
- obj._DW_26 = return_time;
- obj._DW_27 = null;
- }
- function _DWBeginDrag(obj)
- {
- if(_DW_drag_object)
- {
- return false;
- }
- if(obj._DW_27)
- {
- if(!obj._DW_27._DW_22)
- {
- return false;
- }
- _DWTriggerEvents(obj._DW_27,new _DWDropTrigger(8389122,[obj]));
- _DWUndropObject(obj);
- }
- _DW_drag_object = obj;
- var sib_array = _DW_38(obj._parent,obj);
- var i = sib_array.obj_index + 1;
- while(i < sib_array.length)
- {
- obj.swapDepths(sib_array[i]);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- var _left;
- var _right;
- var _top;
- var _bottom;
- with(obj._parent)
- {
- if(_DW_3 == "Scrollbar")
- {
- if(_DW_scroll_vertical)
- {
- _left = 0;
- _right = 0;
- _top = _DW_11 - obj._DW_11 * obj._yscale / 100;
- if(_DW_scroll_up_button)
- {
- _top = eval("_top") + (_DW_scroll_up_button._DW_13 - _DW_scroll_up_button._DW_11);
- }
- _bottom = _DW_13 - obj._DW_13 * obj._yscale / 100;
- if(_DW_scroll_down_button)
- {
- _bottom = eval("_bottom") - (_DW_scroll_down_button._DW_13 - _DW_scroll_down_button._DW_11);
- }
- }
- else
- {
- _top = 0;
- _bottom = 0;
- _left = _DW_10 - obj._DW_10 * obj._xscale / 100;
- if(_DW_scroll_up_button)
- {
- _left = eval("_left") + (_DW_scroll_up_button._DW_12 - _DW_scroll_up_button._DW_10);
- }
- _right = _DW_12 - obj._DW_12 * obj._xscale / 100;
- if(_DW_scroll_down_button)
- {
- _right = eval("_right") - (_DW_scroll_down_button._DW_12 - _DW_scroll_down_button._DW_10);
- }
- }
- }
- }
- obj.startDrag(false,_left,_top,_right,_bottom);
- return true;
- }
- function _DWEndDrag()
- {
- _DW_drag_object.stopDrag();
- var sib_array = _DW_38(_DW_drag_object._parent,_DW_drag_object);
- var i = sib_array.length - 1;
- while(sib_array.obj_index < i)
- {
- _DW_drag_object.swapDepths(sib_array[i]);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) - 1;
- _loc0_;
- }
- var target = _DWFindDropTarget(_DW_9,_DW_drag_object);
- if(target)
- {
- target._DW_28.push(_DW_drag_object);
- _DW_drag_object._DW_27 = target;
- if(target._DW_24)
- {
- var point = new Object();
- point.x = 0;
- point.y = 0;
- target.localToGlobal(point);
- _DW_drag_object._parent.globalToLocal(point);
- _DW_drag_object._x = point.x;
- _DW_drag_object._y = point.y;
- }
- _DWTriggerEvents(_DW_drag_object,new _DWDropTrigger(8389124,null));
- _DWTriggerEvents(target,new _DWDropTrigger(8389121,[_DW_drag_object]));
- if(target._DW_25 != - 1 && target._DW_28.length == target._DW_25)
- {
- _DWTriggerEvents(target,new _DWDropTrigger(8389123,[_DW_drag_object]));
- }
- }
- else if(0 < _DW_drag_object._DW_26)
- {
- _DWAnimateReset(_DW_drag_object,_DW_drag_object._DW_26,_DWConstantSpeed,3);
- }
- _DW_drag_object = null;
- }
- function _DWUpdateDrag()
- {
- if(_DW_drag_object._parent._DW_3 == "Scrollbar")
- {
- _DWUpdateDragScroll(_DW_drag_object._parent);
- }
- _DW_37(_DW_drag_object);
- }
- function _DWUndropObject(obj)
- {
- var list = obj._DW_27._DW_28;
- var i = 0;
- while(i < list.length)
- {
- if(list[i] == obj)
- {
- list.splice(i,1);
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- obj._DW_27 = null;
- }
- function _DWFindDropTarget(target, obj)
- {
- var children = target._DW_0;
- if(!children)
- {
- return null;
- }
- var i = 0;
- while(i < children.length)
- {
- var child = children[i];
- if(_DWTestDrop(child,obj))
- {
- return child;
- }
- child = _DWFindDropTarget(child,obj);
- if(child)
- {
- return child;
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- return null;
- }
- function _DWTestDrop(target, obj)
- {
- if(target._DW_24 == undefined)
- {
- return false;
- }
- var obj_pos = new Object();
- obj_pos.x = 0;
- obj_pos.y = 0;
- obj.localToGlobal(obj_pos);
- var target_pos = new Object();
- target_pos.x = 0;
- target_pos.y = 0;
- target.localToGlobal(target_pos);
- var width = target._width;
- var height = target._height;
- if(target._DW_23)
- {
- width = eval("width") - obj._width;
- height = eval("height") - obj._height;
- }
- if(width / 2 < Math.abs(obj_pos.x - target_pos.x) || height / 2 < Math.abs(obj_pos.y - target_pos.y))
- {
- return false;
- }
- if(target._DW_25 != - 1 && target._DW_28.length == target._DW_25)
- {
- _DWTriggerEvents(target,new _DWDropTrigger(8389125,null));
- return false;
- }
- var objects = target._DW_29;
- if(objects)
- {
- var OK = false;
- var i = 0;
- while(i < objects.length)
- {
- if(objects[i] == obj)
- {
- OK = true;
- }
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- if(!OK)
- {
- _DWTriggerEvents(target,new _DWDropTrigger(8389125,null));
- return false;
- }
- }
- return true;
- }
- function _DWFrameSetShowFrame(frame, transition, callback)
- {
- var frameset = frame._parent;
- if(frameset._DW_current_frame == frame)
- {
- return 0;
- }
- _DWHideObject(frameset._DW_current_frame);
- frameset._DW_current_frame = frame;
- return _DWShowObject(frame,transition,callback,true);
- }
- function _DWUpdateDragScroll(scrollbar)
- {
- var info = new Object();
- _DWGetSetThumbPosition(scrollbar,true,info);
- if(info.pos < 0)
- {
- info.pos = 0;
- }
- if(1 < info.pos)
- {
- info.pos = 1;
- }
- _DWGetSetScrollPosition(scrollbar,false,info);
- }
- function _DWGetSetThumbPosition(scrollbar, §get§, info)
- {
- var thumb = scrollbar._DW_scroll_thumb;
- if(scrollbar._DW_scroll_vertical)
- {
- var top = scrollbar._DW_11;
- var height = scrollbar._DW_13 - scrollbar._DW_11;
- var button = scrollbar._DW_scroll_up_button;
- if(button)
- {
- var top_height = button._DW_13 - button._DW_11;
- top = eval("top") + top_height;
- height = eval("height") - top_height;
- }
- button = scrollbar._DW_scroll_down_button;
- if(button)
- {
- height = eval("height") - (button._DW_13 - button._DW_11);
- }
- if(eval("get"))
- {
- var thumb_height = (thumb._DW_13 - thumb._DW_11) * thumb._yscale / 100;
- info.pos = (thumb._y - thumb_height / 2 - top) / (height - thumb_height);
- }
- else
- {
- var thumb_height;
- if(scrollbar._DW_scroll_proportional)
- {
- thumb_height = info.size * height;
- }
- else
- {
- thumb_height = thumb._DW_13 - thumb._DW_11;
- }
- var thumb_pos = top + info.pos * (height - thumb_height) + thumb_height / 2;
- thumb._y = thumb_pos;
- thumb._yscale = thumb_height * 100 / (thumb._DW_13 - thumb._DW_11);
- }
- }
- else
- {
- var left = scrollbar._DW_10;
- var width = scrollbar._DW_12 - scrollbar._DW_10;
- var button = scrollbar._DW_scroll_up_button;
- if(button)
- {
- var left_width = button._DW_12 - button._DW_10;
- left = eval("left") + left_width;
- width = eval("width") - left_width;
- }
- var button = scrollbar._DW_scroll_up_button;
- if(button)
- {
- width = eval("width") - (button._DW_12 - button._DW_10);
- }
- if(eval("get"))
- {
- var thumb_width = (thumb._DW_12 - thumb._DW_10) * thumb._xscale / 100;
- info.pos = (thumb._x - thumb_width / 2 - left) / (width - thumb_width);
- }
- else
- {
- var thumb_width;
- if(scrollbar._DW_scroll_proportional)
- {
- thumb_width = info.size * width;
- }
- else
- {
- thumb_width = thumb._DW_12 - thumb._DW_10;
- }
- var thumb_pos = left + info.pos * (width - thumb_width) + thumb_width / 2;
- thumb._x = thumb_pos;
- thumb._xscale = thumb_width * 100 / (thumb._DW_12 - thumb._DW_10);
- }
- }
- }
- function _DWGetSetScrollPosition(scrollbar, §get§, info)
- {
- var parent = scrollbar._parent;
- var contents;
- if(parent._DW_3 == "Text")
- {
- if(scrollbar._DW_scroll_vertical)
- {
- if(!parent._DWTEXTS)
- {
- if(eval("get"))
- {
- info.pos = (parent._DWTEXT.scroll - 1) / (parent._DWTEXT.maxscroll - 1);
- }
- else
- {
- parent._DWTEXT.scroll = Math.floor(info.pos * (parent._DWTEXT.maxscroll - 1) + 0.5) + 1;
- }
- scrollbar._DW_scroll_proportional = false;
- return undefined;
- }
- contents = parent._DWTEXTS;
- }
- }
- if(parent._DW_3 == "Image")
- {
- var contents = parent._DWIMAGE;
- }
- if(!contents)
- {
- info.pos = 0;
- info.size = 1;
- }
- if(scrollbar._DW_scroll_vertical)
- {
- var parent_height = parent._DW_13 - parent._DW_11;
- if(eval("get"))
- {
- info.pos = (- contents._y) / (contents._height - parent_height);
- info.size = parent_height / contents._height;
- }
- else
- {
- contents._y = - info.pos * (contents._height - parent_height);
- }
- }
- else
- {
- var parent_width = parent._DW_12 - parent._DW_10;
- if(eval("get"))
- {
- info.pos = (- contents._x) / (contents._width - parent_width);
- info.size = parent_width / contents._width;
- }
- else
- {
- contents._x = - info.pos * (contents._width - parent_width);
- }
- }
- }
- function _DWHyperTextClicked(id)
- {
- var pos = id.indexOf(":",0);
- var tag = id.substr(pos + 1);
- id = "_root" + id.substr(8,pos - 8);
- var textobj = eval(id);
- var actions = textobj["_DWLink" + tag + "_DWActions"];
- var i = 0;
- while(i < actions.length)
- {
- actions[i].Trigger("OnLeftClick");
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) + 1;
- _loc0_;
- }
- }
- function _DWCheckInputFocus()
- {
- var new_focus = Selection.getFocus();
- if(new_focus != null)
- {
- var idx = new_focus.lastIndexOf(".");
- new_focus = new_focus.substr(0,idx);
- }
- if(new_focus != _DW_32)
- {
- var obj = eval(_DW_32);
- if(!obj._DW_update_every_char && obj._DW_3 == "Text")
- {
- if(obj._DWTEXT != _DWGetVariable(obj._DW_text_variable,obj))
- {
- _DWSetVariable(obj._DW_text_variable,obj._DWTEXT,obj);
- }
- }
- if(obj._DW_kill_focus_enter)
- {
- _DWTriggerEvents(obj,"Keyd");
- }
- _DW_32 = new_focus;
- }
- }
- function _DWFormatHex(number, digits)
- {
- var string = number.toString(16) + "";
- while(string.length < digits)
- {
- string = "0" + string;
- }
- return string;
- }
- function _DWSendTrigger(obj, trigger)
- {
- if(obj == null)
- {
- return undefined;
- }
- _DWTriggerEvents(obj,trigger);
- var children = obj._DW_0;
- if(!children)
- {
- return undefined;
- }
- var i = children.length - 1;
- while(i >= 0)
- {
- var child = children[i];
- _DWSendTrigger(child,trigger);
- var _loc0_ = null;
- i = (_loc0_ = eval("i")) - 1;
- _loc0_;
- }
- }
- function _DWGetNewScriptObject(obj)
- {
- var type = obj._DW_3;
- if(type == "Button")
- {
- return new _ILMButton(obj);
- }
- if(type == "Page")
- {
- return new _ILMPage(obj);
- }
- if(type == "Slideshow")
- {
- return new _ILMSlideshow(obj);
- }
- if(type == "Text")
- {
- return new _ILMText(obj);
- }
- if(type == "Video")
- {
- return new _ILMVideo(obj);
- }
- if(type == "Frameset")
- {
- return new _ILMFrameSet(obj);
- }
- if(type == "Publication")
- {
- return new _ILMGlobal(obj);
- }
- return new _ILMGraphicalObject(obj);
- }
- function _ILMEventObject(sprite)
- {
- this.__DW_sprite = sprite;
- }
- function _ILMTreeObject(sprite)
- {
- this._ILMEventObject(sprite);
- }
- function _ILMGraphicalObject(sprite)
- {
- this._ILMTreeObject(sprite);
- }
- function _ILMButton(sprite)
- {
- this._ILMGraphicalObject(sprite);
- }
- function _ILMFrameSet(sprite)
- {
- this._ILMGraphicalObject(sprite);
- }
- function _ILMSlideshow(sprite)
- {
- this._ILMGraphicalObject(sprite);
- }
- function _ILMText(sprite)
- {
- this._ILMGraphicalObject(sprite);
- }
- function _ILMVideo(sprite)
- {
- this._ILMGraphicalObject(sprite);
- }
- function _ILMGlobal(sprite)
- {
- this._ILMTreeObject(sprite);
- this.Debug = new _ILMDebug();
- }
- function _ILMPage(sprite)
- {
- this._ILMGlobal(sprite);
- }
- function _ILMDebug()
- {
- }
- _DWPubReseter.prototype.Update = _DWPubReseter_Update;
- _DWEvent.prototype.Trigger = _DW_39;
- _DWEvent.prototype.InitClose = _DW_3A;
- _DWActionList.prototype.Go = _DW_3B;
- _DWActionList.prototype.Run = _DW_3C;
- _DWActionList.prototype.Notify = _DW_3D;
- _DWActionList.prototype.InitClose = _DW_3E;
- _DWMultiAction.prototype.Construct = _DW_3F;
- _DWMultiAction.prototype.Go = _DW_40;
- _DWMultiAction.prototype.Call = _DW_41;
- _DWMultiAction.prototype.CallAction = _DW_42;
- _DWMultiAction.prototype.Notify = _DW_43;
- _DWMultiAction.prototype.InitClose = _DW_44;
- _DWMultiAction1.prototype = new _DWMultiAction();
- _DWMultiAction1.prototype.Call = _DW_45;
- _DWMultiAction2.prototype = new _DWMultiAction();
- _DWMultiAction2.prototype.Call = _DWMultiAction_Call2;
- _DWMultiAction3.prototype = new _DWMultiAction();
- _DWMultiAction3.prototype.Call = _DWMultiAction_Call3;
- _DWMultiAction4.prototype = new _DWMultiAction();
- _DWMultiAction4.prototype.Call = _DWMultiAction_Call4;
- _DWMultiAction5.prototype = new _DWMultiAction();
- _DWMultiAction5.prototype.Call = _DWMultiAction_Call5;
- _DWMultiAction6.prototype = new _DWMultiAction();
- _DWMultiAction6.prototype.Call = _DWMultiAction_Call6;
- _DWMultiAction7.prototype = new _DWMultiAction();
- _DWMultiAction7.prototype.Call = _DWMultiAction_Call7;
- _DWMultiAction8.prototype = new _DWMultiAction();
- _DWMultiAction8.prototype.Call = _DWMultiAction_Call8;
- _DWMultiAction9.prototype = new _DWMultiAction();
- _DWMultiAction9.prototype.Call = _DWMultiAction_Call9;
- _DWMultiAction10.prototype = new _DWMultiAction();
- _DWMultiAction10.prototype.Call = _DWMultiAction_Call10;
- _DWActionDelay.prototype.Go = _DW_46;
- _DWActionDelay.prototype.Update = _DW_47;
- _DWActionDelay.prototype.InitClose = _DW_48;
- _DWActionGroup.prototype.Go = _DW_49;
- _DWActionGroup.prototype.Notify = _DW_4A;
- _DWActionGroup.prototype.InitClose = _DW_4B;
- _DWActionLoop.prototype.Go = _DW_4C;
- _DWActionLoop.prototype.Notify = _DW_4D;
- _DWActionLoop.prototype.Update = _DW_4E;
- _DWActionLoop.prototype.DoNext = _DW_4F;
- _DWActionLoop.prototype.InitClose = _DW_50;
- _DWActionCondition.prototype.Go = _DW_51;
- _DWActionCondition.prototype.InitClose = _DW_52;
- _DWTickerTrigger.prototype.InitClose = _DW_53;
- _DWTickerTrigger.prototype.Update = _DW_54;
- _DWDropTrigger.prototype.Match = _DW_55;
- _DWCollisionTrigger.prototype.InitClose = _DW_56;
- _DWCollisionTrigger.prototype.Update = _DW_57;
- _DWVariableTrigger.prototype.InitClose = _DWVariableTrigger_InitClose;
- _DWVariableTrigger.prototype.VariableChanged = _DWVariableTrigger_VariableChanged;
- _DWTimeline.prototype.StartObject = _DW_58;
- _DWTimeline.prototype.StopObject = _DW_59;
- _DWTimeline.prototype.Update = _DW_5A;
- _DWTimeline.prototype.Start = _DW_5B;
- _DWTimeline.prototype.Stop = _DW_5C;
- _DWTimelineTrack.prototype.Run = _DW_5D;
- _DWTimelineTrack.prototype.Stop = _DW_5E;
- _DWTimelineTrack.prototype.Kill = _DW_5F;
- _DWTimelineTrack.prototype.Scan = _DW_60;
- _DWTimelineTrack.prototype.Notify = _DW_61;
- _DWAnimationPath.prototype.GetPoint = _DW_62;
- _DWAnimation.prototype.Play = _DW_63;
- _DWAnimation.prototype.Stop = _DW_64;
- _DWAnimation.prototype.Pause = _DW_65;
- _DWAnimation.prototype.Resume = _DW_66;
- _DWAnimation.prototype.GetPos = _DW_67;
- _DWAnimation.prototype.Finished = _DW_68;
- _DWAnimationController.prototype.Add = _DW_69;
- _DWAnimationController.prototype.Remove = _DW_6A;
- _DWAnimationController.prototype.Update = _DW_6B;
- _DWScrollAngleTransition.prototype.stop = _DWScrollAngleTransition_stop;
- _DWScrollAngleTransition.prototype.gotoAndPlay = _DWScrollAngleTransition_gotoAndPlay;
- _DWScrollAngleTransition.prototype.Update = _DWScrollAngleTransition_Update;
- _DWScrollAngleTransition.prototype.IntersectEdge = _DWScrollAngleTransition_IntersectEdge;
- _DW_drag_object = null;
- _ILMEventObject.prototype._ILMEventObject = _ILMEventObject;
- _ILMEventObject.prototype.__DW_root = this;
- _ILMTreeObject.prototype = new _ILMEventObject();
- _ILMTreeObject.prototype._ILMTreeObject = _ILMTreeObject;
- _ILMGraphicalObject.prototype = new _ILMTreeObject();
- _ILMGraphicalObject.prototype._ILMGraphicalObject = _ILMGraphicalObject;
- _ILMButton.prototype = new _ILMGraphicalObject();
- _ILMFrameSet.prototype = new _ILMGraphicalObject();
- _ILMSlideshow.prototype = new _ILMGraphicalObject();
- _ILMText.prototype = new _ILMGraphicalObject();
- _ILMVideo.prototype = new _ILMGraphicalObject();
- _ILMGlobal.prototype = new _ILMTreeObject();
- _ILMGlobal.prototype._ILMGlobal = _ILMGlobal;
- _ILMPage.prototype = new _ILMGlobal();
- _ILMPage.prototype._ILMPage = _ILMPage;
- Cursor2._visible = false;
- _DWInitPublication("dressft",400,null,Cursor2,- 1,- 1,- 1,- 1,- 1,- 1,true,20,false);
- _DWInitVariables(_DW_publication,["SCORE",0,false,"SCORE_VALUE",0,false,"SCORE_VALUE_TOTAL",0,false,"SCORE_VALUE_PERCENT",0,false,"SCORE_CORRECT",0,false,"SCORE_INCORRECT",0,false,"SCORE_TOTAL",0,false,"SCORE_PERCENT",0,false,"CHAPTER_PASSWORD","",false,"PUBLICATION_TIME",0,false,"SYSTEM_TIME_YEAR",0,false,"SYSTEM_TIME_MONTH",0,false,"SYSTEM_TIME_DATE",0,false,"SYSTEM_TIME_DAY",0,false,"SYSTEM_TIME_HOUR",0,false,"SYSTEM_TIME_MINUTE",0,false,"SYSTEM_TIME_SECOND",0,false,"SYSTEM_TIME_12HOUR",0,false,"SYSTEM_TIME_AMPM",0,false,"SYSTEM_DATE_FULL","",false,"SYSTEM_WIN_DIR","",false,"SYSTEM_WINSYS_DIR","",false,"SYSTEM_DOCUMENTS_DIR","",false,"SYSTEM_PROGRAMS_DIR","",false,"SYSTEM_USERNAME","",false,"SYSTEM_PUBLICATION_DIR","",false,"SYSTEM_CD_DRIVE","",false,"SYSTEM_TEMP_DIR","",false,"RADIO_GROUP_1_ID",0,false,"RADIO_GROUP_1_NAME","",false,"RADIO_GROUP_2_ID",0,false,"RADIO_GROUP_2_NAME","",false,"RADIO_GROUP_3_ID",0,false,"RADIO_GROUP_3_NAME","",false,"RADIO_GROUP_4_ID",0,false,"RADIO_GROUP_4_NAME","",false]);
- _DWInitChapter(1,"Chapter 1",- 2,2,3);
-